import request from '@/utils/request'

// 查询房间类型列表
export function listRoomType(hotelId) {
  return request({
    url: `/hotels/roomType/list/${hotelId}`,
    method: 'get'
  })
}

// 新增房间类型
export function addRoomType(data) {
  return request({
    url: '/hotels/roomType/add',
    method: 'post',
    data: data
  })
}

// 修改房间类型
export function updateRoomType(data) {
  return request({
    url: '/hotels/roomType/update',
    method: 'put',
    data: data
  })
}

// 获取房间类型详情
export function getRoomType(id) {
  return request({
    url: `/hotels/roomType/${id}`,
    method: 'get'
  })
}

// 删除房间类型
export function delRoomType(id) {
  return request({
    url: `/hotels/roomType/${id}`,
    method: 'delete'
  })
}
